<div class="shopcart-page" ng-controller="shopCartCtrl">
<header>
    <div class="back"  id="back"></div>
    <h1>购物车（<em id="shopCartNum">{{shopCartDatasNum}}</em>）</h1>
    <div class="more">管理</div>
</header>
<ul class="list" id="shopCart">
    <li ng-repeat="(index,item) in shopCartDatas">
        <input class="check" type="checkbox" ng-checked="item.isCheck" ng-click="item.isCheck=!item.isCheck">
        <img ng-src="{{item.img_src}}" alt="shopcart1"  ui-sref="proDetails({ id:{{item.id}} })">
        <span class="title" ui-sref="proDetails({ id:{{item.id}} })">{{item.title}}{{item.subtitle}}</span>
        <span class="price">￥<em>{{item.price}}</em></span>
        <div class="amount">
            <i class="reduce" ng-click="reduce(index);changeNum(index)">-</i>
            <input class="num" type="text" value="1" name="amount" ng-model="item.num" ng-change="changeNum(index)">
            <i class="add" ng-click="add(index);changeNum(index)">+</i>
        </div>
    </li>
</ul>
<div class="total">
    <label>
    <input  id="checkAll" type="checkbox" class="check-all" ng-checked="isCheckAll()" ng-click="setCheck()">
    <b>全选</b>
    </label>
    <span class="submit" id="confirmOrder" ng-click="submit()">结算</span>
    <span class="price">合计：￥<em id="totalPrice">{{getTotalPrice()}}</em></span>
</div>
<footer>
    <div class="option1" ui-sref="home">
        <i></i>
        <b>首页</b>
    </div>
    <div class="option2" ui-sref="proCategories">
        <i></i>
        <b>分类</b>
    </div>
    <div class="option3" ui-sref="shopCart">
        <i></i>
        <b>购物车</b>
    </div>
    <div class="option4" ui-sref="user">
        <i></i>
        <b>个人</b>
    </div>
</footer>
</div>